<div ng-controller="BalancelogCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'充值'|translate}}</li>
        <li class="active">
            {{"操作日志"|translate}}
        </li>
    </ul>
    <chongzhi-tab ng-model="chosedStatus" click-tab="getlist(1)"></chongzhi-tab>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'会员'|translate}}</th>
                <th>{{'单据号'|translate}}</th>
                <th>{{'业务类型'|translate}}</th>
                <th>{{'变更前余额'|translate}}</th>
                <th>{{'余额变动'|translate}}</th>
                <th>{{'变更后余额'|translate}}</th>
                <th>{{'状态'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="(k ,list) in balance_logs">
                <td>
                    <wxinfo ng-model="list.member_id" stye="1"></wxinfo>
                </td>
                <td><a href="#/order/info?order_id={{list.outer_no}}">{{list.outer_no}}</a></td>
                <td>{{list.kind == 2?'增加余额':'扣减余额'}}</td>
                <td>{{(list.src_balance+list.src_present).toFixed(2)}}
                    <div class="gray">余额{{list.src_balance}}+赠送额{{list.src_present}}</div>
                </td>
                <td>{{list.kind == 2?'+':'-'}}{{(list.inc_balance+list.inc_present).toFixed(2)}}
                    <div class="gray">余额{{list.inc_balance}}+赠送额{{list.inc_present}}</div>
                </td>
                <td>{{(list.dst_balance+list.dst_present).toFixed(2)}}
                    <div class="gray">余额{{list.dst_balance}}+赠送额{{list.dst_present}}</div>
                </td>
                <td>{{list.state == 1?'已支付':'未支付'}}
                    <br> {{list.created_at | ddtt}}</td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="page_Size" total="total_count" get-data="getlist(pageNo)"></pager>
    <!-- 分页end -->
</div>